{config_load file="/libs/lang_team_cs.conf"}
{literal}
<script type="text/javascript">
function promptCallback(mode,id) {

     switch(mode){  
        case 'team': EL('delete_team').click(); //vymažeme tým
        break;        
        case 'task': EL('delete_task-'+id).click();
        break;
        case 'user': EL('delete_user-'+id).click();
        break;
     }
}
</script>
{/literal}
<div style="border-bottom:1px solid #19029F;{if $user_browser eq "msie" && $browser_version lt 8}padding-bottom:8px{/if}">                 
<div style="float:left;margin-bottom:0px"><h2 style="margin-top:0px;border-bottom:none">{#Team#} <a href="{$team_url}" style="color:darkblue;text-decoration:none"
onmouseover="this.style.textDecoration='underline'" onmouseout="this.style.textDecoration='none'">{$team_name}</a></h2></div>  
<div style="float:right;">
<a class="jTip" id="one" name="{#RSS_Desc#}" href="{$my_pligg_base}/team_rss.php?team_id={$team_id}&htmloutput=true"
style="color:#FF8000;font-weigh:bold;text-decoration:none" onclick="window.open('{$my_pligg_base}/team_rss.php?team_id={$team_id}','_self')">
 <img src="{$my_pligg_base}/templates/{$the_template}/images/rssg.png" style="height:28px;width:80px;"/></a></div>
<br clear="all"/>
</div>

{*For errors*}
{if $unauthorized_access eq true}
<div class="error" style="color:black;width:99.35%"><img src="{$my_pligg_base}/templates/{$the_template}/images/error_stop.png" style="height:32px;width:32px;"/>
<div style="font-size:12pt;margin-top:-28px;margin-left:40px;margin-bottom:3px">{#Unauthorized_Access#}</div></div>
{/if}

{*Team delete errors*}
{if $team_delete_error_present eq true}

<div class="error" style="color:black;width:99.35%"><img src="{$my_pligg_base}/templates/{$the_template}/images/error_stop.png" style="height:32px;width:32px;"/>
<div style="font-size:12pt;margin-top:-28px;margin-left:40px;margin-bottom:3px">{#Error_Report_Team_Delete#}</div></div>
{section name=error loop=$team_error}

    
   {if $team_error[error] eq 1}<div class="error_t" >{#Cannot_Delete_Team#}</div>{/if}  
   {if $team_error[error] eq 2}<div class="error_t" >{#No_Authorization_Delete_Team#}</div>{/if}  

              
{/section}
 {/if}
 
{*Team update errors*}
{if $team_error_present eq true}

<div class="error" style="color:black;width:99.35%"><img src="{$my_pligg_base}/templates/{$the_template}/images/error_stop.png" style="height:32px;width:32px;"/>
<div style="font-size:12pt;margin-top:-28px;margin-left:40px;margin-bottom:3px">{#Error_Update_Report#}</div></div>
{section name=error loop=$team_error}

   
   {if $team_error[error] eq 3}<div class="error_t" >{#No_Team_Publicity#}</div>{/if}
   {if $team_error[error] eq 4}<div class="error_t" >{#No_Team_Category#}</div>{/if}
   {if $team_error[error] eq 5}<div class="error_t" >{#No_Team_Objective#}</div>{/if}
   {if $team_error[error] eq 6}<div class="error_t" >{#Short_Team_Objective#}</div>{/if}
   {if $team_error[error] eq 7}<div class="error_t" >{#No_Team_Rating#}</div>{/if}
   {if $team_error[error] eq 8}<div class="error_t" >{#Cannot_Save_New_Team_Database#}</div>{/if}  
   {if $team_error[error] eq 11}<div class="error_t" >{#No_Authorization_Update#}</div>{/if}  
   
   
              
{/section}

{/if}

{*Team user errors*}
{if $team_user_error_present eq true}

<div class="error" style="color:black;width:99.35%"><img src="{$my_pligg_base}/templates/{$the_template}/images/error_stop.png" style="height:32px;width:32px;"/>
<div style="font-size:12pt;margin-top:-28px;margin-left:40px;margin-bottom:3px">{#Error_Report_User#}</div></div>
{section name=error loop=$team_error}

    
   {if $team_error[error] eq 1}<div class="error_t" >{#Cannot_Save_New_Team_Database#}</div>{/if}  
   {if $team_error[error] eq 2}<div class="error_t" >{#No_Authorization_Add_User#}</div>{/if}  
   {if $team_error[error] eq 3}<div class="error_t" >{#Short_Username#}</div>{/if} 
   {if $team_error[error] eq 4}<div class="error_t" >{#Username_Non_Exist#}</div>{/if} 
   {if $team_error[error] eq 5}<div class="error_t" >{#Duplicate_Membership#}</div>{/if} 
   {if $team_error[error] eq 6}<div class="error_t" >{#Administrator_Member#}</div>{/if} 
   {if $team_error[error] eq 7}<div class="error_t" >{#Creator_Cannot_Be_Deleted#}</div>{/if} 
              
{/section}

{/if} 

{*Team user delete errors*}
{if $team_user_delete_error_present eq true}

<div class="error" style="color:black;width:99.35%"><img src="{$my_pligg_base}/templates/{$the_template}/images/error_stop.png" style="height:32px;width:32px;"/>
<div style="font-size:12pt;margin-top:-28px;margin-left:40px;margin-bottom:3px">{#Error_Report_User_Delete#}</div></div>
{section name=error loop=$team_error}

    
   {if $team_error[error] eq 1}<div class="error_t" >{#Member_Not_Deleted#}</div>{/if}  
   {if $team_error[error] eq 2}<div class="error_t" >{#No_Authorization_Delete_User#}</div>{/if}  
   {if $team_error[error] eq 3}<div class="error_t" >{#Not_Team_Member#}</div>{/if} 
   

              
{/section}

{/if} 

{*Team task errors*}
{if $team_task_error_present eq true OR $team_task_error_completeness eq true OR $team_task_comment_error_present eq true OR $team_task_rating_error_present eq true OR $team_task_file_error_present eq true OR $team_task_delete_error_present eq true}
<div class="error" style="color:black;width:99.35%"><img src="{$my_pligg_base}/templates/{$the_template}/images/error_stop.png" style="height:32px;width:32px;"/>
<div style="font-size:12pt;margin-top:-28px;margin-left:40px;margin-bottom:3px">{#Error_Report_Task#}</div></div>
{section name=error loop=$team_error}
    
   {if $team_error[error] eq 1}<div class="error_t" >{#Member_Before_Task#}</div>{/if}  
   {if $team_error[error] eq 2}<div class="error_t" >{#No_Task_Name#}</div>{/if}  
   {if $team_error[error] eq 3}<div class="error_t" >{#Short_Task_Name#}</div>{/if} 
   {if $team_error[error] eq 4}<div class="error_t" >{#No_Task_Description#}</div>{/if} 
   {if $team_error[error] eq 5}<div class="error_t" >{#Short_Task_Description#}</div>{/if} 
   {if $team_error[error] eq 6}<div class="error_t" >{#No_Task_Worker#}</div>{/if} 
   {if $team_error[error] eq 7}<div class="error_t" >{#Incorrect_Task_Deadline#}</div>{/if} 
   {if $team_error[error] eq 8}<div class="error_t" >{#No_Authorization_Add_Task#}</div>{/if} 
   {if $team_error[error] eq 9}<div class="error_t" >{#No_Authorization_Modify_Task#}</div>{/if} 
   {if $team_error[error] eq 10}<div class="error_t" >{#No_Authorization_Delete_Task#}</div>{/if} 
   {if $team_error[error] eq 11}<div class="error_t" >{#Task_Name_Already_Exist#}</div>{/if}
   {if $team_error[error] eq 12}<div class="error_t" >{#Cannot_Save_Task_Database#}</div>{/if} 
   {if $team_error[error] eq 13}<div class="error_t" >{#Completeness_Worker_Only#}</div>{/if} 
   {if $team_error[error] eq 14}<div class="error_t" >{#Completeness_Bad#}</div>{/if} 
   {if $team_error[error] eq 15}<div class="error_t" >{#No_Authorization_Add_Comment#}</div>{/if}
   {if $team_error[error] eq 16}<div class="error_t" >{#No_Task_Comment#}</div>{/if}
   {if $team_error[error] eq 17}<div class="error_t" >{#Short_Task_Comment#}{$minimal_taskcomment_length}</div>{/if}
   {if $team_error[error] eq 18}<div class="error_t" >{#Worker_Cannot_Rate#}</div>{/if}
   {if $team_error[error] eq 19}<div class="error_t" >{#Incorrect_Rating#}</div>{/if} 
   
   {if $team_error[error] eq 20}<div class="error_t" >{#Only_Task_Worker#}</div>{/if} 
   {if $team_error[error] eq 21}<div class="error_t" >{#Cannot_Save_File#}</div>{/if} 
   {if $team_error[error] eq 22}<div class="error_t" >{#No_Filename#}</div>{/if} 
   {if $team_error[error] eq 23}<div class="error_t" >{#Only_Part#}</div>{/if}
   {if $team_error[error] eq 24}<div class="error_t" >{#Size_Too_Big#}</div>{/if} 
   {if $team_error[error] eq 25}<div class="error_t" >{#Wrong_Filetype#}</div>{/if}
   {if $team_error[error] eq 26}<div class="error_t" >{#Zero_Filesize#}</div>{/if}
   {if $team_error[error] eq 27}<div class="error_t" >{#Cannot_Delete_Task_From_Database#}</div>{/if}
   {if $team_error[error] eq 28}<div class="error_t" >{#Task_Not_Exist#}</div>{/if} 
   {if $team_error[error] eq 29}<div class="error_t" >{#No_Authorization_Add_Task_Member#}</div>{/if} 
   {if $team_error[error] eq 30}<div class="error_t" >{#No_Authorization_Modify_Task_Member#}</div>{/if} 
   {if $team_error[error] eq 31}<div class="error_t" >{#No_Authorization_Delete_Task_Member#}</div>{/if} 
   
   
                     
{/section}
{/if} 
{*Team download error*}
{if $taskfile_download_error_present eq true}

<div class="error" style="color:black;width:99.35%"><img src="{$my_pligg_base}/templates/{$the_template}/images/error_stop.png" style="height:32px;width:32px;"/>
<div style="font-size:12pt;margin-top:-28px;margin-left:40px;margin-bottom:3px">{#Error_Download_Report#}</div></div>
<div class="error_t" >{#Reason_No_Download#}</div>
{/if}

 {*For confirmations*}
{if $team_confirmation_present eq true}


{section name=confirm loop=$team_confirmation}

{if $team_confirmation[confirm] eq 2}
<div id="team_updated" class="confirmation" style="color:black;width:99.35%"><img src="{$my_pligg_base}/templates/{$the_template}/images/confirmed.png" style="height:32px;width:32px;"/>
<div style="font-size:12pt;margin-top:-28px;margin-left:40px;margin-bottom:3px">{#Team_Successfully_Updated#}</div></div>
<script type="text/javascript">hide('team_updated');</script> 
{/if}

{if $team_confirmation[confirm] eq 3}
<div id="member_added" class="confirmation" style="color:black;width:99.35%"><img src="{$my_pligg_base}/templates/{$the_template}/images/confirmed.png" style="height:32px;width:32px;"/>
<div style="font-size:12pt;margin-top:-28px;margin-left:40px;margin-bottom:3px">{#Team_Member_Added#}</div></div>
<script type="text/javascript">hide('member_added');</script> 
{/if}

{if $team_confirmation[confirm] eq 4}
<div id="member_deleted" class="confirmation" style="color:black;width:99.35%"><img src="{$my_pligg_base}/templates/{$the_template}/images/confirmed.png" style="height:32px;width:32px;"/>
<div style="font-size:12pt;margin-top:-28px;margin-left:40px;margin-bottom:3px">{#Team_Member_Deleted#}</div></div>
<script type="text/javascript">hide('member_deleted');</script> 
{/if}
 {*For Tasks*}
{if $team_confirmation[confirm] eq 5}
<div id="task_added" class="confirmation" style="color:black;width:99.35%"><img src="{$my_pligg_base}/templates/{$the_template}/images/confirmed.png" style="height:32px;width:32px;"/>
<div style="font-size:12pt;margin-top:-28px;margin-left:40px;margin-bottom:3px">{#Team_Task_Added#}</div></div>
<script type="text/javascript">hide('task_added');</script> 
{/if}
{if $team_confirmation[confirm] eq 6}
<div id="task_updated" class="confirmation" style="color:black;width:99.35%"><img src="{$my_pligg_base}/templates/{$the_template}/images/confirmed.png" style="height:32px;width:32px;"/>
<div style="font-size:12pt;margin-top:-28px;margin-left:40px;margin-bottom:3px">{#Team_Task_Updated#}</div></div>
<script type="text/javascript">hide('task_updated');</script> 
{/if}
{if $team_confirmation[confirm] eq 7}
<div id="task_deleted" class="confirmation" style="color:black;width:99.35%"><img src="{$my_pligg_base}/templates/{$the_template}/images/confirmed.png" style="height:32px;width:32px;"/>
<div style="font-size:12pt;margin-top:-28px;margin-left:40px;margin-bottom:3px">{#Team_Task_Deleted#}</div></div>
<script type="text/javascript">hide('task_deleted');</script> 
{/if}
{if $team_confirmation[confirm] eq 8}
<div id="comment_added" class="confirmation" style="color:black;width:99.35%"><img src="{$my_pligg_base}/templates/{$the_template}/images/confirmed.png" style="height:32px;width:32px;"/>
<div style="font-size:12pt;margin-top:-28px;margin-left:40px;margin-bottom:3px">{#Team_Task_Comment_Added#}</div></div>
<script type="text/javascript">hide('comment_added');</script> 
{/if}
{if $team_confirmation[confirm] eq 9}
<div id="rating_changed" class="confirmation" style="color:black;width:99.35%"><img src="{$my_pligg_base}/templates/{$the_template}/images/confirmed.png" style="height:32px;width:32px;"/>
<div style="font-size:12pt;margin-top:-28px;margin-left:40px;margin-bottom:3px">{#Task_Rating_Changed#}</div></div>
<script type="text/javascript">hide('rating_changed');</script>  
{/if}

{if $team_confirmation[confirm] eq 10}
<div id="file_uploaded" class="confirmation" style="color:black;width:99.35%"><img src="{$my_pligg_base}/templates/{$the_template}/images/confirmed.png" style="height:32px;width:32px;"/>
<div style="font-size:12pt;margin-top:-28px;margin-left:40px;margin-bottom:3px">{#File_Uploaded#}</div></div>
<script type="text/javascript">hide('file_uploaded');</script>
{/if}  
{/section}

{/if}
 {*/For confirmations*}
 
 <fieldset style="line-height: 3ex;position:relative">
<legend class="team_legend">{#Information_About_Team#}</legend> <br />
<div style="font-weight:bold;font-size:140%;float:left;margin-bottom:-5px;">{#Team_Objective#}:</div>
<div style="float:left;font-weight:10pt;margin-left:10px;font-weight:bold;font-size:110%;border-bottom:1px solid black">{$team_objective}</div>

<div id="rightMenuBase"> 
{if $current_user_id eq $creator_id}
    {literal}<div  onclick="showHide('team_settings','fade');makeMeStronger(this)" 

    {if $user_browser eq "msie" && $browser_version lt 7}
    onmouseover="this.style.cursor='pointer';this.style.textDecoration='underline'" onmouseout="this.style.cursor='';this.style.textDecoration=''"
    {/if}

    {/literal}{if $team_error_present eq true}style="font-weight:bold"{/if}{literal}>       
    {/literal}{#Team_Settings#}&nbsp;<img src="{$my_pligg_base}/templates/{$the_template}/images/team_settings.png" 
    style="margin-bottom:-3px;width:16px;height:16px;"/></div>
    {literal}<div  onclick="showHide('team_user_settings','fade');makeMeStronger(this);"
    
    {if $user_browser eq "msie" && $browser_version lt 7}
    onmouseover="this.style.cursor='pointer';this.style.textDecoration='underline'" onmouseout="this.style.cursor='';this.style.textDecoration=''"
    {/if}

    {/literal}{if $team_user_error_present eq true}style="font-weight:bold"{/if}>
    {#Team_Users_Edit#}&nbsp;<img src="{$my_pligg_base}/templates/{$the_template}/images/team_user.png" style="margin-bottom:-3px;width:16px;height:16px"/></div>
    {literal}<div  onclick="showHide('team_task_settings','fade');makeMeStronger(this);"

    {if $user_browser eq "msie" && $browser_version lt 7}
    onmouseover="this.style.cursor='pointer';this.style.textDecoration='underline'" onmouseout="this.style.cursor='';this.style.textDecoration=''"
{/if}

{/literal}{if $team_task_error_present eq true || $show_task_edit eq true}style="font-weight:bold"{/if}>
{#Team_Task_Edit#}&nbsp;<img src="{$my_pligg_base}/templates/{$the_template}/images/team_task.png" style="margin-bottom:-3px;width:16px;height:16px"/></div>
{/if}
<div  onclick="showHide('tasks_information','fade');makeMeStronger(this);"  style="font-weight:bold"
{if $user_browser eq "msie" && $browser_version lt 7}
onmouseover="this.style.cursor='pointer';this.style.textDecoration='underline'" onmouseout="this.style.cursor='';this.style.textDecoration=''"
{/if}
>{#Team_Task_Info#}&nbsp;<img src="{$my_pligg_base}/templates/{$the_template}/images/task_info.png" style="margin-bottom:-3px;width:16px;height:16px"/></div>


<div  onclick="set_shoutbox_script({$current_user_id},{$team_id},{$shoutbox_refresh_interval});{literal}showHide('team_shoutbox_field','fade');makeMeStronger(this);"{/literal} style="font-weight:bold"
{if $user_browser eq "msie" && $browser_version lt 7}
onmouseover="this.style.cursor='pointer';this.style.textDecoration='underline'" onmouseout="this.style.cursor='';this.style.textDecoration=''"
{/if}
>
{#Team_Shoutbox#}&nbsp;<img src="{$my_pligg_base}/templates/{$the_template}/images/mess_box.png" style="margin-bottom:-3px;width:16px;height:16px"/></div>
</div>    
<br><br>                                                               
 <div style="float:left">
<table border="0" style="line-height:4ex;width:750px">
  <tr>                                                                   
   <td style="width:175px;text-decoration:underline">{#Team_Administrator#}:</td>
    <td style="text-align:right;color:darkblue;font-weight:bold;width:155px">
    <a class="teamlink" href="{$creator_url}">{$creator_name}</a>     
    <a href="{$creator_message_url}">
   <img src="{$my_pligg_base}/templates/{$the_template}/images/teampost.png" style="height:16px;width:16px;margin-bottom:-3px" alt="message"></a></td>
    <td style="width:10px"></td>
    <td style="width:130px;text-align:left"><span style="text-decoration:underline">{#Team_Category#}:</span></td>
    <td><span style="color:darkblue;font-weight:bold;width:230px">{$team_category_name}</span></td>
  </tr>
    <tr>
    <td style="width:145px;text-decoration:underline">{#Team_Created#}:</td>
    <td style="text-align:right;color:darkblue;width:155px">{$team_date}</td>
    <td style="width:10px"></td>
    <td style="width:135px;text-align:left"><span style="text-decoration:underline">{#Team_Last_Update#}:</span></td>
    <td><span style="color:red">{$team_last_modify}</span></td>
  </tr>
  </table>
    </div>  <br clear="all">
    
  <table style="line-height:4ex;" border="0">

  <tr>
    <td style="width:145px;text-decoration:underline">{#Team_Publicity#}:</td>
    <td style="text-align:right;font-weight:bold;width:155px;{if $team_publicity eq 0}color:darkred;">{#Team_Private#}{else}color:green;">{#Team_Public#}{/if} </td>
    <td style="width:10px"></td>
     <td style="width:135px;text-align:left"><span style="text-decoration:underline">{#Team_Members#}:</span></td>
    <td> 
   {section name=members loop=$team_members_idš}
   <a class="teamlink" href="{$team_members_url[members]}">{$team_members_name[members]}</a>
   <a href="{$team_members_message_url[members]}">
   <img src="{$my_pligg_base}/templates/{$the_template}/images/teampost.png" style="height:16px;width:16px;margin-bottom:-3px" alt="message"></a>
    {assign var=actual value=members}
   {if $last_team_name neq $team_members_name[members]},{/if}
    
    {/section}
    </td>   
  </tr>
    <tr>
    <td style="width:175px;text-decoration:underline">{#Team_Minimal_Rating#}:</td>
    <td style="text-align:right;color:darkred;font-weight:bold;width:155px">{$team_rating}/10</td>

   
  </tr>
</table>
      
    
</fieldset>
 <!-- Team Settings-->    
 <fieldset style=" line-height: 29px;{if $team_error_present neq true}display:none{/if};position:relative" id="team_settings">
<legend class="team_legend">{#Team_Settings#}</legend>
<div style="float:left"><img src="{$my_pligg_base}/templates/{$the_template}/images/settings.png" style="width:48px;height:48px"/></div> 
<div style="float:right">
<a href="javascript://" onClick="del_team('{#Team_Delete_Confirmation#}')" style="text-decoration:none" >{#Team_Delete#} 
<img src="{$my_pligg_base}/templates/{$the_template}/images/user_disable.png" style="margin-bottom:-3px;width:16px;height:16px"/></span>
</a>
    
    <form action="" method="post" style="display:none">                        
    <input type="submit" id="delete_team" />           
    <input type="hidden" name="delteam" value="{$team_id}">
    </form>
                    
 </div>
  <br clear="all">

<form action="" method="post" id="team_create_edit_form">   
  
<table border=0 style="margin-bottom:10px;line-height:4ex;width:860px">
  <tr>                 
    <td style="width:260px;text-align:left"><span style="text-decoration:underline">{#Team_Category#}:</span></td>
    <td style="line-height:2ex;width:278px">
        <select name="category" style="width:278px" {if $highlight_team_category eq 1}class="highlight_error"{/if}>
        <option value="999" {if $team_category eq false}selected="selected"{/if}>&nbsp;&nbsp;&nbsp;{#Choose_Category#}</option>
            {section name=thecat loop=$cat_array start=0}
                <option value = "{$cat_array[thecat].auto_id}" {if $team_category eq $cat_array[thecat].auto_id}selected="selected"{/if}>
                {if $cat_array[thecat].spacercount lt $lastspacer}{$cat_array[thecat].spacerdiff|repeat_count:''}{/if}
                {if $cat_array[thecat].spacercount gt $lastspacer}{/if}
                {$cat_array[thecat].spacercount|repeat_count:'&nbsp;&nbsp;&nbsp;'}
                {$cat_array[thecat].name} 
                &nbsp;&nbsp;&nbsp;       
                {assign var=lastspacer value=$cat_array[thecat].spacercount}                    
                </option>
            {/section}
        </select>
   
    </td>
  <td style="width:10px"></td> 
  <td style="width:190px;text-decoration:underline;text-align:left">{#Team_Publicity#}:</td>
  <td style="text-align:left;color:darkblue;font-weight:bold;width:165px">                              
    <select name="publicity" style="width:120px" {if $highlight_team_publicity eq 1}class="highlight_error"{/if}>                                  
               <option value="999" {if $team_publicity_select neq true}selected="selected"{/if}
               >&nbsp;&nbsp;&nbsp;
               {#Select#}
               </option>  
               <option value = "1" {if $team_publicity eq 1}selected="selected"{/if}>
               &nbsp;&nbsp;&nbsp;
                {#Team_Public#}
              </option> 
              <option value = "0" {if $team_publicity eq 0} {if $team_publicity_select eq 1}selected="selected"{/if}{/if}>
               &nbsp;&nbsp;&nbsp;
                {#Team_Private#}
              </option>
                                                  
    </select>&nbsp;<img src="{$my_pligg_base}/templates/{$the_template}/images/help2.png" style="margin-bottom:-5px;width:22px;height:22px" 
    onmouseover="this.style.cursor='pointer'" onmouseout="this.style.cursor='auto'"
    onclick="Tip('<div style=&quot;float:left;margin-top:8px&quot;><img src=&quot;{$my_pligg_base}/templates/{$the_template}/images/support_help.png&quot; style=&quot;width:48px;height:48px&quot;></div><div style=&quot;width:300px;float:left;text-align:left;border:1px solid darkblue;margin-top:3px;margin-bottom:3px;padding:8px 8px 8px 8px;background:#F0F8FF;margin-left:3px;margin-right:3px;&quot; id=&quot;completeness&quot;>{#Team_Publicity_Text#}</div>',
      TITLE,'{#Team_Publicity_Help#}',TITLEBGCOLOR,
           '#000099',STICKY,true,BORDERCOLOR,'#003C95',FONTCOLOR,'#000099',BGCOLOR,'#97CBFF',
             DELAY,0,DURATION,11000,BGCOLOR,'#F2FDFF',FADEOUT,300,CENTERMOUSE, true,OPACITY,90,CLICKCLOSE,true)"/>
    </td>

  

  </tr>
  <tr>
    <td style="width:260px;text-align:left"><span style="text-decoration:underline">{#Team_Objective#}:</span><span class="popisek"> ({#Max_60_Chars#})</span></td>
    <td><input name="objective" type="text" maxlength="60" style="width:275px" value="{$team_objective}" id="team_objective"
    onkeyup="isOKTip(EL('team_objective'),{$minimal_team_objective_length},1,1,'{#Error_Input#}','{#Chars_Needed#}','{#Input_Ok#}','{#Minimal_Maximal_Length_Ok#}')" 
    
      {if $highlight_team_objective eq 1}class="highlight_error"{/if}/>
 

      </td>
    <td style="width:10px"></td>  
    <td style="width:250px;text-decoration:underline;text-align:left">{#Team_Minimal_Rating#}:</td>
    <td style="text-align:left;color:darkblue;width:165px">
    
     <select name="rating" style="width:120px" {if $highlight_team_rating eq 1}class="highlight_error"{/if}>
            
            <option value="999" {if $team_rating_selected neq true}selected="selected"{/if}>
            &nbsp;&nbsp;&nbsp;
            {#Select#}
            </option>  
           {section name=rating loop=$rating_array start=0}
            <option value = "{$rating_array[rating]}" {if $team_rating eq $rating_array[rating]}{if $team_rating_selected eq 1}selected="selected"{/if}{/if}>
               &nbsp;&nbsp;&nbsp;
                {$rating_array[rating]}/10
              </option>      
           {/section}                            
        </select>&nbsp;<img src="{$my_pligg_base}/templates/{$the_template}/images/help2.png" style="margin-bottom:-5px;width:22px;height:22px"
        onmouseover="this.style.cursor='pointer'" onmouseout="this.style.cursor='auto'"
            onclick="Tip('<div style=&quot;float:left;margin-top:8px&quot;><img src=&quot;{$my_pligg_base}/templates/{$the_template}/images/support_help.png&quot; style=&quot;width:48px;height:48px&quot;></div><div style=&quot;width:300px;float:left;text-align:left;border:1px solid darkblue;margin-top:3px;margin-bottom:3px;padding:8px 8px 8px 8px;background:#F0F8FF;margin-left:3px;margin-right:3px;&quot; id=&quot;completeness&quot;>{#Team_Minimal_Rating_Explanation#}</div>',
      TITLE,'{#Team_Minimal_Rating_Help#}',TITLEBGCOLOR,
           '#000099',STICKY,true,BORDERCOLOR,'#003C95',FONTCOLOR,'#000099',BGCOLOR,'#97CBFF',
             DELAY,0,DURATION,11000,BGCOLOR,'#F2FDFF',FADEOUT,300,CENTERMOUSE, true,OPACITY,90,CLICKCLOSE,true)"/>
    </td>
   
   
  </tr>                                                                                              
</table> 
  <input type="submit" id="update_team" class="buttMain" value="{#Update_Team_Settings#}" style="margin-left:5px"> 
  <input type="hidden" name="update_team_request" value="1" />
  <input type="hidden" name="team_id" value="{$team_id}" />
</form>                              
</form>                              
</fieldset>


<fieldset style="{if $team_user_error_present neq true}display:none;{/if}position:relative;line-height:20px" id="team_user_settings">
<legend class="team_legend">{#Team_Users_Edit#}</legend>
<img src="{$my_pligg_base}/templates/{$the_template}/images/people.png" style="margin-bottom:-3px;width:48px;height:48px"/>
<br />
 <form action="" method="post" id="teameusereditform"> 
   <div style="margin-left:5px">
   <u>{#Add_New_Team_Member#}:</u><span class="popisek"> ({#Add_Username#})</span> 
   <input name="member_name" id="member_username" type="text" style="width:150px"  
   onkeyup="isOKTip(EL('member_username'),3,1,1,'{#Error_Input#}','{#Chars_Needed#}','{#Input_Ok#}','{#Minimal_Maximal_Length_Ok#}')" />
   <input type="submit" id="add_team_member" class="buttMain_user" value="{#Add_Team_Member#}" style="margin-left:5px">
   <input type="hidden" name="add_member_request" value="1" />
   <input type="hidden" name="team_id" value="{$team_id}" /> 
   
   </div>
</form>

<div style="margin-left:5px">
<div class="task_header">{#Current_Team_Members#}:</div>
{if $team_members_id eq false}<div class="error_t" >{#No_Team_Members#}</div>
{else}
  
<table style="border-collapse:collapse;border:1px solid black;margin-top:5px;width:430px;">
<tr><th class="zahlavi_tab_user" >{#Current_Team_Member_Username#}</th><th class="zahlavi_tab_user" style="width:80px">{#Team_User_Action#}</th></tr>

{section name=members loop=$team_members_id}
<tr><td class="cell_tabL">{$team_members_name[members]}</td><td class="header_tab_red" style="width:80px;padding-top:2px;padding-bottom:2px">
<span style="padding-left:3px;padding-right:3px" onClick="del_user('{#Delete_Team_User_Confirmation#}',{$team_members_id[members]})" 
class="buttMain_delete">{#Team_User_Delete#}</span> 

<form action="" method="post" style="display:none">
<input type="submit" id="delete_user-{$team_members_id[members]}"/>           

<input type="hidden" name="deluser" value="{$team_members_id[members]}">
</form>

</td></tr> 
{/section}                                                                      

</table>
{/if} 
</div>
</fieldset>                                                
<!--TASK-->    
<fieldset style="line-height:29px;{if $team_task_error_present neq true}{if $show_task_edit neq true}display:none;{/if}{/if}position:relative" id="team_task_settings"> 
<legend class="team_legend">{#Team_Task_Edit#}</legend>
<img src="{$my_pligg_base}/templates/{$the_template}/images/evolution-tasks.png" style="width:48px;height:48px"/>
<br />
 <form action="" method="post" id="teamtaskeditform"> 
   <div class="task_header" style="text-decoration:none"><u>{#Add_Team_Task#}:</u>
        <input type="button" id="add_task_butt" class="buttMain_task" style="font-weight:normal;margin-left:10px;"
               value="{#Add_Team_Task_Instruct#}" onclick="showHide('adding_task_box')" /> </div>
                                                                                                    
 <div id="adding_task_box" class="team_task_box" style="{if $team_task_error_present neq true OR $task_error_in_edit_section eq true}display:none{/if}">      
   <u>{#Task_Name#}:</u><span class="popisek"> ({#Max_25_Chars#}) </span><input id="task_name" name="task_name" type="text" 
   maxlength="25" style="width:220px;margin-left:5px"  onkeyup="isOK(EL('task_name'),{$minimal_task_name_length},1,EL('task_name_ok'),EL('task_name_bad'),1)" 
    onmouseout="isOK(EL('task_name'),{$minimal_task_name_length},1,EL('task_name_ok'),EL('task_name_bad'),1)" 
   {if $highlight_task_name eq 1}class="highlight_error"{/if} value="{if $show_task_edit neq true AND $taskedit_completed neq true}{$task_name}{/if}"/>
   
   <span id="task_name_ok" style="color:green;display:none">OK</span>
   <span id="task_name_bad" style="color:red;display:none">{#At_Least#} {$minimal_task_name_length} {#Chars#} {#Required#}</span>   
   
   <br /><br />
   <u>{#Task_Description#}:</u><span class="popisek"> ({#Max_350_Chars#}) </span><br />
   <textarea name="task_description"  maxlength="450" rows="6" cols="60" id="task_description" style="margin-top:5px;margin-bottom:10px" 
   onKeyDown="textCounter(EL('task_description'),EL('DescriptionCount'),EL('DescriptionCountLeft'),{$minimal_task_description_length},450,EL('taskneedchar'),EL('taskchargood'),EL('taskcharleft'));"
   onmouseout="textCounter(EL('task_description'),EL('DescriptionCount'),EL('DescriptionCountLeft'),{$minimal_task_description_length},450,EL('taskneedchar'),EL('taskchargood'),EL('taskcharleft'));"
      {if $highlight_task_description eq 1}class="highlight_error"{/if}>{if $show_task_edit neq true AND $taskedit_completed neq true}{$task_description}{/if}</textarea>
     
    
   <div style="{if $user_browser neq "msie"}margin-top:-3px{/if}">
     <input value="{$minimal_task_description_length}" readonly id="DescriptionCount" type="text" size="3" maxlength="3"  style="background:#FFEAEA;border:1px solid grey;padding-left:3px">
     <span id="taskneedchar">
     {#Chars_Needed#}</span><span id="taskchargood" style="display:none"> {#Minimal_Maximal_Length_Ok#}</span>
     <input readonly id="DescriptionCountLeft" type="text" size="3" maxlength="3"  style="display:none;background:#ffffc6;border:1px solid grey;padding-left:3px;margin-left:20px">
     <span id="taskcharleft" style="display:none">{#Chars_Left#}</span>
 </div>
 <script type="text/javascript">
    EL('DescriptionCount').value=getNeededCount(EL('task_description'),{$minimal_task_description_length},EL('taskneedchar'),EL('taskchargood'),EL('DescriptionCount'));
    </script>       
 <br />  
   <u>{#Task_Worker#}:</u> 
   <select name="task_worker" style="width:220px;margin-left:5px" {if $highlight_task_worker eq 1}class="highlight_error"{/if}>
             
            <option value="999" {if $task_worker neq true}selected="selected"{/if}>
            &nbsp;&nbsp;&nbsp;
            {#Select#}
            </option>  
            
     
            <option value="{$creator_id}" {if $show_task_edit neq true AND $taskedit_completed neq true}{if $creator_id eq $task_worker} selected="selected"{/if}{/if}>
            &nbsp;&nbsp;&nbsp; 
            {$creator_name}
            </option>       
       
            
            {section name=members loop=$team_members_id}
                <option value = "{$team_members_id[members]}"{if $show_task_edit neq true AND $taskedit_completed neq true}{if $team_members_id[members] eq $task_worker} selected="selected"{/if}{/if}>
                 &nbsp;&nbsp;&nbsp; 
                {$team_members_name[members]}</option>
            {/section}
            
   </select>
        <br /> <br /> 
        <u>{#Task_Working_Deadline#}:</u>           
        <input  name="task_deadline" id="alfa_one" type="text" 
        value="{if $task_deadline eq false OR $show_task_edit eq true OR $taskedit_completed eq true}{#Day_Month_Year#}{else}{$task_deadline}{/if}" 
        onfocus="this.select();lcs(this);" 
        onclick="event.cancelBubble=true;this.select();lcs(this)" style="width:220px;margin-left:5px" {if $highlight_task_deadline eq 1}class="highlight_error"{/if}>
        <br /> <br /> 
<input type="submit" id="add_new_task" class="buttMain_task" value="{#Add_Team_Task#}" />     
<input type="hidden" name="add_team_task" value="1" />
   
   </div>
   
</form>
 <div class="task_header">{#Current_Team_Tasks#}:</div>
 <div class="team_task_box">      


 {if $team_tasks_id eq false}<div class="error_t" >{#No_Team_Tasks#} {if $task_filtering neq false} {#Filtering_In_Use#}{/if}</div>    {/if} 
                                  

 {if $team_tasks_id neq false}
 
  <table style="border-collapse:collapse;border:1px solid black;margin-top:5px;width:382px;line-height:20px"> 
      <tr><th class="zahlavi_tab_task">{#Task_Name#}</th>
          <th colspan="2" class="zahlavi_tab_task" style="width:100px">{#Team_Task_Action#}</th>
      </tr>
      

     
                  
{section name=task loop=$team_tasks_id} 
    <tr>
        <td class="cell_tabL">{$team_tasks_name[task]}</td>
        <td class="header_tab_yellow" style="padding-top:2px;padding-bottom:2px">
        
         <span style="padding-left:3px;padding-right:3px" onClick="EL('edit_task-{$team_tasks_id[task]}').click()" 
         class="buttMain_yellow">{#Edit_Team_Task#}</span> 

         <form action="" method="post" style="display:none">
            <input type="submit" id="edit_task-{$team_tasks_id[task]}"/>           
            <input type="hidden" name="edit_task" value="{$team_tasks_id[task]}">
         </form>
        </td>          
        <td class="header_tab_red">
                <span style="padding-left:3px;padding-right:3px;width:80px" 
                onClick="del_task('{#Delete_Team_Task_Confirmation#}',{$team_tasks_id[task]})" 
                class="buttMain_delete">{#Delete_Team_Task#}</span> 
                    <form action="" method="post" style="display:none">
                        <input type="submit" id="delete_task-{$team_tasks_id[task]}" />           
                        <input type="hidden" name="deltask" value="{$team_tasks_id[task]}">
                    </form>
        
        </td>
  </tr>
{/section} 
          
  </table>    
  <br />  
  {if $task_filtering neq false}<div style="background:#ffffe1;border:1px solid #e6e600;padding-left:5px;line-height:25px">{#Filtering_In_Use#}</div>    {/if}                                                  
  </div>
  <br />                                                                
<!-- SELECTED TASK EDIT START-->
       
<form action="" method="post" id="teamtaskeditform"> 
    <div id ="edditing_task_box" style="{if $show_task_edit neq true}display:none{/if}">
   <div class="task_header">{#Editting_Selected_Task#}:</div>
   <div class="team_task_box"> 
   
                       
     <u>{#Task_Name#}:</u><span class="popisek"> ({#Max_25_Chars#}) </span><input id="task_name_edit" name="task_name" type="text" 
   maxlength="25" style="width:220px;margin-left:5px" onkeyup="isOK(EL('task_name_edit'),{$minimal_task_name_length},1,EL('task_name_ok_edit'),EL('task_name_bad_edit'),1)"
   onmouseout="isOK(EL('task_name_edit'),{$minimal_task_name_length},1,EL('task_name_ok_edit'),EL('task_name_bad_edit'),1)"
   {if $highlight_task_name_update eq 1}class="highlight_error"{/if} value="{$task_name}"/> 
   <span id="task_name_ok_edit" style="color:green;display:none">OK</span>
   <span id="task_name_bad_edit" style="color:red;display:none">{#At_Least#} {$minimal_task_name_length} {#Chars#} {#Required#}</span>
   <br /><br />
   <u>{#Task_Description#}:</u><span class="popisek"> ({#Max_350_Chars#}) </span><br />
   <textarea name="task_description"  maxlength="450" rows="6" cols="60" id="task_description_edit" style="margin-top:5px;margin-bottom:10px" 
   onKeyDown="textCounter(EL('task_description_edit'),EL('DescriptionCountEdit'),EL('DescriptionCountLeftEdit'),{$minimal_task_description_length},450,EL('taskneedcharedit'),EL('taskchargoodedit'),EL('taskcharleftedit'));"
   onmouseout="textCounter(EL('task_description_edit'),EL('DescriptionCountEdit'),EL('DescriptionCountLeftEdit'),{$minimal_task_description_length},450,EL('taskneedcharedit'),EL('taskchargoodedit'),EL('taskcharleftedit'));"                    
      {if $highlight_task_description_update eq 1}class="highlight_error"{/if}>{$task_description}</textarea>
   
   <div style="{if $user_browser neq "msie"}margin-top:-3px{/if}">
     <input value="{$minimal_task_description_length}" readonly id="DescriptionCountEdit" type="text" size="3" maxlength="3"  style="background:#FFEAEA;border:1px solid grey;padding-left:3px">
     <span id="taskneedcharedit">{#Chars_Needed#}</span>
     <span id="taskchargoodedit" style="display:none"> {#Minimal_Maximal_Length_Ok#}</span>
     <input readonly id="DescriptionCountLeftEdit" type="text" size="3" maxlength="3"  style="display:none;background:#ffffc6;border:1px solid grey;padding-left:3px;margin-left:20px">
     <span id="taskcharleftedit" style="display:none">{#Chars_Left#}</span>
   </div> 
       
    <script type="text/javascript">
    EL('DescriptionCountEdit').value=getNeededCount(EL('task_description_edit'),12,EL('taskneedcharedit'),EL('taskchargoodedit'),EL('DescriptionCountEdit'));
    </script>    
         
      
   <br />
   <u>{#Task_Worker#}:</u>                                                                                                               
   <select name="task_worker" style="width:220px;margin-left:5px" {if $highlight_task_worker_update eq 1}class="highlight_error"{/if}>
             
            <option value="999" {if $task_worker neq true}selected="selected"{/if}>
            &nbsp;&nbsp;&nbsp;
            {#Select#}
            </option>  
            
      
            <option value="{$creator_id}" {if $creator_id eq $task_worker} selected="selected"{/if}>
            &nbsp;&nbsp;&nbsp; 
            {$creator_name}
            </option>       
           
                
            {section name=members loop=$team_members_id}
                <option value = "{$team_members_id[members]}"{if $team_members_id[members] eq $task_worker} selected="selected"{/if}>
                 &nbsp;&nbsp;&nbsp; 
                {$team_members_name[members]}</option>
            {/section}
            
   </select>
        <br /> <br /> 
        <u>{#Task_Working_Deadline#}:</u>
        <input  name="task_deadline" id="alfa_one" type="text" value="{if $task_deadline eq false}{#Day_Month_Year#}{else}{$task_deadline}{/if}" onfocus="this.select();lcs(this);" 
        onclick="event.cancelBubble=true;this.select();lcs(this)" style="width:220px;margin-left:5px" {if $highlight_task_deadline_update eq 1}class="highlight_error"{/if}>
        <br /> <br /> 
          <input type="submit" id="edit_selected_task" class="buttMain_task" value="{#Edit_Selected_Task#}" style="margin-top:7px">       
          <input type="hidden" name="edit_task_request" value="1"> 
          <input type="hidden" name="edit_task" value="{$task_edit_id}">       
        <br />   
   </div>
   <br /> 
    
</form>
<!-- SELECTED TASK EDIT END-->

{/if}  
</fieldset>
   
 
<fieldset id="tasks_information" style="line-height: 2ex;position:relative">
<legend class="team_legend">{#Tasks_Information#}</legend><br /> 

<!-- Sorting and Task Filtering Start-->
<div style="float:left">   
<form action="" method="get" id="tsff">   
{#Order_By#}:
<select name="sorttaskby" style="width:278px" >

               <option value="1" {if $task_sorting eq 1 or $task_sorting eq false}selected="selected"{/if} >
               &nbsp;&nbsp;&nbsp;
               {#Sort_Date_Desc#}
               </option>
               
               <option value="2" {if $task_sorting eq 2}selected="selected"{/if} >
               &nbsp;&nbsp;&nbsp;
               {#Sort_Date_Asc#}
               </option>
                
                <option value="3" {if $task_sorting eq 3 }selected="selected"{/if} >
               &nbsp;&nbsp;&nbsp;
               {#Sort_Deadline_Desc#}
               </option>
               
               <option value="4" {if $task_sorting eq 4 or $task_sorting eq false}selected="selected"{/if} >
               &nbsp;&nbsp;&nbsp;
               {#Sort_Deadline_Asc#}
               </option> 
                            
               <option value="5" {if $task_sorting eq 5}selected="selected"{/if}  >
               &nbsp;&nbsp;&nbsp;
               {#Sort_Name_Desc#}
               </option>
               
               <option value="6" {if $task_sorting eq 6}selected="selected"{/if}  >
               &nbsp;&nbsp;&nbsp;
               {#Sort_Name_Asc#}
               </option>               
               
               <option value="7" {if $task_sorting eq 7}selected="selected"{/if}  >
               &nbsp;&nbsp;&nbsp;
               {#Sort_Completeness_Desc#}
               </option>
               
               <option value="8" {if $task_sorting eq 8}selected="selected"{/if}  >
               &nbsp;&nbsp;&nbsp;
               {#Sort_Completeness_Asc#}
               </option>

</select>
</div>
<div style="float:left;margin-left:15px">
{#Filter_By#}:
        <select name="filtertaskby" style="width:278px{if $task_filtering neq false};background:#ffffdf{/if}" >
          
             
            <option value="0" {if $task_filtering neq true}selected="selected"{/if}>
            &nbsp;&nbsp;&nbsp;
            {#Select#} &nbsp;{#All#}
            </option>  
            

            <option value="{$creator_id}" {if $creator_id eq $task_filtering} selected="selected"{/if}>
            &nbsp;&nbsp;&nbsp; 
            {$creator_name}
            </option>       

                
            {section name=members loop=$team_members_id}
                <option value = "{$team_members_id[members]}"{if $team_members_id[members] eq $task_filtering} selected="selected"{/if}>
                 &nbsp;&nbsp;&nbsp; 
                {$team_members_name[members]}
                </option>
            {/section}
            
            </select>         
        </div>
        <div style="float:left;margin-left:10px">
        <input type="submit" value="{#Perform#}" accesskey="1" class="buttMain" >
        <input type="hidden" value="1" name="sort_filter_task_request">
        <input type="hidden" value="{$team_id}" name="id"> 
     

 </form>
   </div> 
 <!-- Sorting and task filtering end -->

   <br clear="all">{if $user_browser eq "msie"}<br />{/if} 
   {if $team_tasks_id eq false}<div class="error_t" >{#No_Team_Tasks#}{if $task_filtering neq false} {#Filtering_In_Use#}{/if}</div>    {/if} 
   {if $team_tasks_id neq false} 
   
  <table style="margin-top:-5px;min-width:810px;border: 1px solid black;margin-top:15px;margin-bottom:15px;width:100%;text-align:left;border-collapse:collapse;line-height:3ex"
  cellpadding=3 cellspacing=0 border=2>
    <tr>
      <th colspan="5" class="zahlavi_tab">{#Task#}</th>
      <th colspan="2" class="zahlavi_tab">{#Task_Rating#}</th>
      <th colspan="2" class="zahlavi_tab">{#Task_File#}</th>
      <th colspan="2" class="zahlavi_tab">{#Task_Related#}</th>


    </tr>
   
    <tr>
      <td class="zahlavi_tab2" nowrap>{#Task_Name#}</td>
      <td class="zahlavi_tab2" nowrap>{#Task_Description#}</td> 
      <td class="zahlavi_tab2" nowrap>{#Task_Worker#}</td>
      <td class="zahlavi_tab2" nowrap>{#Task_Working_Deadline#}</td>
      <td class="zahlavi_tab2" nowrap>{#Task_Complete#}</td>
      <td class="zahlavi_tab2" nowrap>{#Task_Status#}</td>                                                          
      <td class="zahlavi_tab2" nowrap>{#Task_Average_Rating#}</td>  
      <td class="zahlavi_tab2" nowrap>{#File_Download#}</td>
      <td class="zahlavi_tab2" nowrap>{#File_Upload#}</td>
      <td class="zahlavi_tab2" nowrap>{#Task_Links#}</td>
      <td class="zahlavi_tab2" nowrap>{#Task_Comments#}</td>
     

    </tr>
     {section name=task loop=$team_tasks_id}   
    <tr>
      <td nowrap class="cell_tab">{$team_tasks_name[task]}</td>

            <td class="cell_tab" style="padding-bottom:1px"><span class="runTip"
      onmouseover="this.style.background='#BCDDFE'" onmouseout="this.style.background='#E0ECFE'" 
      onclick="Tip('<div style=&quot;width:350px;text-align:left;border:1px solid darkblue;margin-top:3px;margin-bottom:3px;padding-left:5px;padding-right:5px;background:#F0F8FF;margin-left:3px;margin-right:3px;padding-bottom:3px&quot; id=&quot;details&quot;>{$team_tasks_date[task]}<br />{$team_tasks_description[task]}.<br /> </div>',
      TITLE,'{#Task_Description#}',TITLEBGCOLOR,
           '#000099',CLOSEBTN,true,STICKY,true,BORDERCOLOR,'#003C95',FONTCOLOR,'#000099',BGCOLOR,'#97CBFF',
             DELAY,0,DURATION,30000,BGCOLOR,'#F2FDFF',FADEOUT,300,CENTERMOUSE, true,CLICKCLOSE,false)">{#Show2#}</span></td>
  
      <td nowrap class="cell_tab">{$team_tasks_worker[task]}</td>
      <td nowrap class="cell_tab" style="width:72px;text-align:center;{if $today_date gt $team_tasks_deadline_bin[task]} background-color:#FEEDED{/if}">
            {if $today_date gt $team_tasks_deadline_bin[task]}<span class="tooltipred" title="<div class='titlecontent'>{#Task_Deadline_Reached#}</div>">   
      {else}<span>{/if}{$team_tasks_deadline_show[task]}</span></td>    
      
             <td nowrap class="cell_tab" style="padding-bottom:1px"><span class="compl" {if $team_tasks_completeness[task] eq false}style="background:#fcdada">0{else}{if $team_tasks_completeness[task] lt 30}style="background:#fff0f0"{/if}{if $team_tasks_completeness[task] lt 50 AND $team_tasks_completeness[task] gt 29}style="background:#ffefdf"{/if}{if $team_tasks_completeness[task] lt 70 AND $team_tasks_completeness[task] gt 49}style="background:#ffffdf"{/if}{if $team_tasks_completeness[task] gt 69 and $team_tasks_completeness[task] lt 90}style="background:#f0fff1"{/if}{if $team_tasks_completeness[task] gt 89}style="background:#80FF80"{/if}>{$team_tasks_completeness[task]}{/if} %</span>  
             
       {if $current_user_id eq $team_tasks_worker_id[task]}
      <span style="background:#E0ECFE;border:1px solid black;padding-left:3px;padding-right:3px;cursor:pointer;" 
      onmouseover="this.style.background='#BCDDFE'" onmouseout="this.style.background='#E0ECFE'" 
      onclick="Tip('<div style=&quot;text-align:left;border:1px solid darkblue;margin-top:3px;margin-bottom:3px;padding-left:5px;padding-right:5px;background:#F0F8FF;margin-left:3px;margin-right:3px;padding-bottom:3px&quot; id=&quot;fileup-1&quot;><form method=&quot;post&quot; id=&quot;ratingform&quot;><input type=&quot;hidden&quot;  /><div style=&quot;margin-bottom:3px&quot;>{#Insert_Completeness#}: </div> <input name=&quot;task_completeness&quot; type=&quot;text&quot; maxlength=&quot;3&quot; style=&quot;width:25px&quot;/><br /> <input type=&quot;submit&quot; value=&quot;{#Add_Completeness#}&quot;  class=&quot;buttMain&quot;/><input type=&quot;hidden&quot; name=&quot;task_completeness_update_request&quot; value=&quot;1&quot; /><input type=&quot;hidden&quot; name=&quot;task_id&quot; value=&quot;{$team_tasks_id[task]}&quot; /></form><div style=&quot;margin-top:-5px&quot;></div></div>',
      TITLE,'{#Adding_Percentage_Completeness#}',TITLEBGCOLOR,
           '#000099',CLOSEBTN,true,STICKY,true,BORDERCOLOR,'#003C95',FONTCOLOR,'#000099',BGCOLOR,'#97CBFF',
             DELAY,0,DURATION,30000,BGCOLOR,'#F2FDFF',FADEOUT,300,CENTERMOUSE, true,CLICKCLOSE,false)">{#Completeness_Edit#}</span>
             {/if}
             </td>
      </td>
      
      <td nowrap class="cell_tab" style="width:50px">
      {section name=avg loop=$taskrating_task_id} 
                                                           
      {if $team_tasks_id[task] eq $taskrating_task_id[avg]}  
      {if $taskrating_average[avg] gt $team_rating or $taskrating_average[avg] eq $team_rating}  
      <span class="tooltipgreen" title="<div class='greentitle'>{#Sufficient_Rating#}</div><div class='titlecontent'>{#Sufficient_Rating_Text#}</div>">
      <img src="{$my_pligg_base}/templates/{$the_template}/images/ok.png" style="width:22px;height:22px"
      </span>
      {else} 
       <span class="tooltipyellow" title="<div class='yellowtitle'>{#Insufficient_Rating#}</div><div class='titlecontent'>{#Insufficient_Rating_Text#}</div>">
       <img src="{$my_pligg_base}/templates/{$the_template}/images/bad.png" style="width:22px;height:22px">
      </span>   
     
     {/if}{/if}
      {/section}
      </td>
      

      
      <td nowrap class="cell_tab" style="padding-bottom:1px">
         
       {section name=rating_name loop=$taskrating_user_name}
       {if $team_tasks_id[task] eq $taskrating_user_task_id[rating_name]}
       {assign var=taskrating_author value=$team_tasks_id[task]}
       {/if}
       {/section}
      
      {section name=avg loop=$taskrating_task_id} 
      {if $team_tasks_id[task] eq $taskrating_task_id[avg]}
       
      {if $taskrating_author eq $team_tasks_id[task]} 
      <span class="tooltipblue" style="margin-right:5px;border: 1px solid #66CCFF;padding-left:2px;padding-right:2px" 
            title="{section name=rating_name loop=$taskrating_user_name}{if $team_tasks_id[task] eq $taskrating_user_task_id[rating_name]}<div class='titlecontent' style='width:150px'>{$taskrating_user_name[rating_name]} - <b>{$taskrating_user_rating_value[rating_name]}</b>{/if}</div> {/section}">{$taskrating_average[avg]}       

      {/if}
      {/if} 
      {/section}
      
      {if $taskrating_author neq $team_tasks_id[task]} 
      <span class="tooltipblack" style="margin-right:5px;border: 1px solid black;padding-left:2px;padding-right:2px" title="<div class='titlecontent'>{#No_Ratings_Yet#}</div>">0  
      
      {/if} 
      /10</span></span>                      
      {if $current_user_id neq $team_tasks_worker_id[task]}
    
      <span style="background:#E0ECFE;border:1px solid black;padding-left:3px;padding-right:3px;cursor:pointer;" 
      onmouseover="this.style.background='#BCDDFE'" onmouseout="this.style.background='#E0ECFE'" 
      onclick="Tip('<div style=&quot;text-align:left;border:1px solid darkblue;margin-top:3px;margin-bottom:3px;padding-left:5px;padding-right:5px;background:#F0F8FF;margin-left:3px;margin-right:3px;padding-bottom:3px&quot; id=&quot;rate&quot;><form method=&quot;post&quot; id=&quot;ratingform&quot;><input type=&quot;hidden&quot; /><div style=&quot;margin-bottom:3px&quot;>{#Enter_Rating#}: </div> <input name=&quot;taskrating_value&quot; type=&quot;text&quot; maxlength=&quot;2&quot; style=&quot;width:25px&quot;/><br /> <input type=&quot;submit&quot; value=&quot;{#Rate_Task#}&quot; class=&quot;buttMain&quot;/><input type=&quot;hidden&quot;  name=&quot;taskrating_request&quot; value=&quot;1&quot;/><input type=&quot;hidden&quot; name=&quot;task_id&quot; value=&quot;{$team_tasks_id[task]}&quot; /></form></div>',
      TITLE,'{#Rating#}',TITLEBGCOLOR,
           '#000099',CLOSEBTN,true,STICKY,true,BORDERCOLOR,'#003C95',FONTCOLOR,'#000099',BGCOLOR,'#97CBFF',
             DELAY,0,DURATION,30000,BGCOLOR,'#F2FDFF',FADEOUT,300,CENTERMOUSE, true,CLICKCLOSE,false)">{#Rate_Task#}</span>
        
           
       {/if}      
             </td>      
      <td nowrap class="cell_tab">
      {section name=file loop=$taskfile_id}  
      {if $taskfile_task_id[file] eq $team_tasks_id[task]}
      {assign var=taskfile_exist value=$team_tasks_id[task]} 
      {/if}      
      {/section}                                                                        
       {if $team_tasks_id[task] eq  $taskfile_exist}
      <span style="min-width:85px" class="runTip"
      onmouseover="this.style.background='#BCDDFE'" onmouseout="this.style.background='#E0ECFE'" 
      onclick="Tip('<div style=&quot;text-align:left;border:1px solid darkblue;margin-top:3px;margin-bottom:3px;padding-left:5px;padding-right:5px;padding-top:3px;padding-bottom:6px;background:#F0F8FF;margin-left:3px;margin-right:3px;&quot; id=&quot;fileup-1&quot;><span &quot;style=margin-bottom:5px&quot;>{#Select_Desired_File_Version#}:</span><table style=&quot;border-collapse:collapse;color:black;border:1px solid black;margin-top:4px;width:400px&quot;><tr style=&quot;font-size:10pt;line-height:20px&quot;><td class=&quot;zahlavi_tab2&quot; style=&quot;width:200px&quot;>{#File_Name#}</td><td class=&quot;zahlavi_tab2&quot;>{#File_Size#}</td><td class=&quot;zahlavi_tab2&quot; >{#Revision#}</td><td class=&quot;zahlavi_tab2&quot; >{#Downloaded#}</td></tr>{section name=file loop=$taskfile_id}  {if $taskfile_task_id[file] eq $team_tasks_id[task]}<tr class=&quot;taskversion&quot; onclick=&quot;EL(\'taskfilebutt-{$taskfile_id[file]}-{$taskfile_task_id[file]}\').click()&quot;><td style=&quot;padding:2px 2px 2px 2px&quot;>{$taskfile_name[file]}<form action=&quot;&quot; method=&quot;post&quot; style=&quot;display:none&quot;><input type=&quot;submit&quot; value=&quot;submit&quot; id=&quot;taskfilebutt-{$taskfile_id[file]}-{$taskfile_task_id[file]}&quot;/><input type=&quot;hidden&quot;  name=&quot;taskfile_id&quot; value=&quot;{$taskfile_id[file]}&quot;/><input type=&quot;hidden&quot;  name=&quot;taskfile_task_id&quot; value=&quot;{$taskfile_task_id[file]}&quot;/><input type=&quot;hidden&quot;  name=&quot;taskfile_download_request&quot; value=&quot;1&quot;/></form></td> <td style=&quot;border-left:1px solid black;border-right:1px solid black;text-align:center&quot;>{$taskfile_size[file]}kB</td><td style=&quot;text-align:center&quot;>{$taskfile_revision[file]}</td><td id =&quot;down{$taskfile_id[file]}-{$taskfile_task_id[file]}&quot; style=&quot;text-align:center;border-left:1px solid black&quot;>{$taskfile_downloads[file]}</td></tr> {/if}    {/section}</table> ',
      TITLE,'{#File_Download_Request#}',TITLEBGCOLOR,
           '#000099',CLOSEBTN,true,STICKY,true,BORDERCOLOR,'#003C95',FONTCOLOR,'#000099',BGCOLOR,'#97CBFF',
             DELAY,0,DURATION,60000,BGCOLOR,'#F2FDFF',FADEOUT,300,CENTERMOUSE, true,CLICKCLOSE,true,OPACITY,95)">{#Select_Version#}</span>
      {else}<span class="tooltipblue" title="<div class='titlecontent'>{#No_Files_Yet#}</div>">
      <img src="{$my_pligg_base}/templates/{$the_template}/images/zero.png" style="height:16px;width:16px;margin-bottom:-4px" 
      </span>
               
      {/if}                                      
      </td>
                                                                                                                                                                                                                                         
      <td nowrap class="cell_tab" style="padding-bottom:1px"> 
       {if $current_user_id eq $team_tasks_worker_id[task]}
      <span style="min-width:85px" class="runTip"   
                                                                                                                                                                                
      onmouseover="this.style.background='#BCDDFE'" onmouseout="this.style.background='#E0ECFE'" 
      onclick="Tip('<div style=&quot;text-align:left;border:1px solid darkblue;margin-top:3px;margin-bottom:3px;padding-left:5px;padding-right:5px;background:#F0F8FF;margin-left:3px;margin-right:3px;&quot; id=&quot;fileup-1&quot;><form enctype=&quot;multipart/form-data&quot; method=&quot;post&quot; id=&quot;fileform&quot;><input type=&quot;hidden&quot; name=&quot;MAX_FILE_SIZE&quot; value=&quot;{$maximum_taskfilesize}&quot; /><input type=&quot;hidden&quot; name=&quot;file_upload_request&quot; value=&quot;1&quot; /><input type=&quot;hidden&quot; name=&quot;task_id&quot; value=&quot;{$team_tasks_id[task]}&quot; /><div style=&quot;margin-bottom:3px&quot;>{#Select_File_Upload_Zip_Request#}: </div> <input name=&quot;taskfile&quot; type=&quot;file&quot; /><br /> <input type=&quot;submit&quot; value=&quot;{#File_Upload#} {#file#}&quot; class=&quot;buttMain&quot; /></form></div>',
      TITLE,'{#File_Upload#}',TITLEBGCOLOR,
           '#000099',CLOSEBTN,true,STICKY,true,BORDERCOLOR,'#003C95',FONTCOLOR,'#000099',BGCOLOR,'#97CBFF',
             DELAY,0,DURATION,80000,BGCOLOR,'#F2FDFF',FADEOUT,300,CENTERMOUSE, true,CLICKCLOSE,false)">{#New_File#}</span>
             {else} <span class="tooltipblack" style="color:#C0C0C0" title="<div class='titlecontent' style='width:190px'>{#Only_Task_Worker#}</div>">X</span>                         
             {/if}
      </td>

      <td nowrap class="cell_tab" style="padding-bottom:1px">        
                                                                                                                                
        {section name=tasklink loop=$tasklink_task_id}       
        {if $tasklink_task_id[tasklink] eq $team_tasks_id[task]}     
      {assign var=tasklink_exist value=$team_tasks_id[task]} 
      {/if}      
      {/section} 
        
       {if $team_tasks_id[task] eq  $tasklink_exist}                       
      <span class="runTip"
      onmouseover="this.style.background='#BCDDFE'" onmouseout="this.style.background='#E0ECFE'" 
      onclick="Tip('<div class=&quot;taskcomment_main&quot; style=&quot;background:white&quot;>{section name=tasklink loop=$tasklink_task_id}{if $tasklink_task_id[tasklink] eq $team_tasks_id[task]}<div style=&quot;border:1px solid black;margin-top:5px;background:#F0F8FF;&quot;><div id=&quot;link-{$team_tasks_id[task]}-{$tasklink_link_id[tasklink]}&quot; class=&quot;taskcomment&quot; style=&quot;font-weight:bold;font-style:italic;padding-left:3px;padding-right:3px;padding-top:2px;padding-bottom:2px;width:450px&quot; onclick=&quot;changeColor(\'link-{$team_tasks_id[task]}-{$tasklink_link_id[tasklink]}\',\'tasklink-{$team_tasks_id[task]}-{$tasklink_link_id[tasklink]}\',\'#66CCFF\');showHide(\'tasklink-{$team_tasks_id[task]}-{$tasklink_link_id[tasklink]}\')&quot;>{$tasklink_title[tasklink]}</div><div id=&quot;tasklink-{$team_tasks_id[task]}-{$tasklink_link_id[tasklink]}&quot; style=&quot;width:450px;padding:3px 1px 3px 1px;display:none&quot;><span class=&quot;taskcomment_yel&quot; style=&quot;border:1px solid black;margin-left:2px&quot; onclick=&quot;window.open(\'{$tasklink_story_url[tasklink]}\',\'_blank\')&quot;>{#More_Details#}</span><span class=&quot;taskcomment_yel&quot; style=&quot;margin-left:4px&quot; onclick=&quot;window.open(\'{$tasklink_url[tasklink]}\',\'_blank\')&quot;>{#Open_Link#}</span><span style=&quot;font-size:7pt;color:#1c9eff&quot; > [{$tasklink_referer_name[tasklink]}]</span></div></div>{/if}{/section}</div>',
      TITLE,'{#Links_Related#}',TITLEBGCOLOR,
           '#000099',CLOSEBTN,true,STICKY,true,BORDERCOLOR,'#003C95',FONTCOLOR,'#000099',BGCOLOR,'#97CBFF',
             DELAY,0,DURATION,90000,BGCOLOR,'#F2FDFF',FADEOUT,300,CENTERMOUSE, true,CLICKCLOSE,false,OPACITY,95)">{#Select#}</span>   
      {else}<span class="tooltipblueL" title="<div class='titlecontent' style='width:240px'>{#No_Tasklinks_Yet#}</div>">
      <img src="{$my_pligg_base}/templates/{$the_template}/images/zero.png" style="height:16px;width:16px;margin-bottom:-4px" 
      </span>
      {/if}                           
                                    
      </td>
      <td nowrap class="cell_tab" style="padding-bottom:1px">
      {section name=taskcomment loop=$team_taskcomments_id}
      {if $team_taskcomments_task_id[taskcomment] eq $team_tasks_id[task]}    
      {assign var=taskcomment_exist value=$team_tasks_id[task]} 
      {/if}
      {/section}
      {if $team_tasks_id[task] eq  $taskcomment_exist}
      
      <span class="runTip"
      onmouseover="this.style.background='#BCDDFE'" onmouseout="this.style.background='#E0ECFE'" 
      onclick="Tip('<div class=&quot;taskcomment_main&quot;>{section name=taskcomment loop=$team_taskcomments_id}{if $team_taskcomments_task_id[taskcomment] eq $team_tasks_id[task]}<div style=&quot;border:1px solid black;margin-top:5px&quot;><div class=&quot;taskcomment&quot; id=&quot;tc{$team_tasks_id[task]}-comment-{$team_taskcomments_id[taskcomment]}&quot; onclick=&quot;changeColor(\'tc{$team_tasks_id[task]}-comment-{$team_taskcomments_id[taskcomment]}\',\'content-{$team_tasks_id[task]}-comment-{$team_taskcomments_id[taskcomment]}\',\'#66CCFF\');showHide(\'content-{$team_tasks_id[task]}-comment-{$team_taskcomments_id[taskcomment]}\',\'slide\')&quot;>{$team_taskcomments_date[taskcomment]} {#From#}: <b><i>{$team_taskcomments_creator_name[taskcomment]}</i></b> </div><div id=&quot;content-{$team_tasks_id[task]}-comment-{$team_taskcomments_id[taskcomment]}&quot; class=&quot;taskcomment_content&quot; style=&quot;display:none&quot;&>{$team_taskcomments_content[taskcomment]}</div></div>{/if}{/section}</div>',                                                            
      TITLE,'{#Comments_Related#}',TITLEBGCOLOR,
           '#000099',CLOSEBTN,true,STICKY,true,BORDERCOLOR,'#003C95',FONTCOLOR,'#000099',BGCOLOR,'#97CBFF',
             DELAY,0,BGCOLOR,'#F2FDFF',FADEOUT,300,CENTERMOUSE, true,CLICKCLOSE,false,OPACITY,95)">{#Show#}</span>
  {else}<span class="tooltipblueL" title="<div class='titlecontent'>{#No_Comments_Yet#}</div>">
      <img src="{$my_pligg_base}/templates/{$the_template}/images/zero.png" style="height:16px;width:16px;margin-bottom:-4px" 
      </span>
  {/if}
  
            <span class="runTip"                                                          
      onmouseover="this.style.background='#BCDDFE'" onmouseout="this.style.background='#E0ECFE'" 
      onclick="Tip('<div style=&quot;text-align:left;border:1px solid darkblue;margin-top:3px;margin-bottom:3px;padding-left:5px;padding-right:5px;background:#F0F8FF;margin-left:3px;margin-right:3px;padding-bottom:3px&quot; id=&quot;comment&quot;><form method=&quot;post&quot; id=&quot;ratingform&quot;><div style=&quot;margin-bottom:3px&quot;>{#Please_Add_Comment_Task_Quality#} ({#Max_350_Chars#}): </div> <textarea name=&quot;taskcomment_content&quot; rows=&quot;10&quot; cols=&quot;60&quot; id=&quot;taskcomment_content-{$team_tasks_id[task]}&quot;  onKeyDown=&quot;textCounter(EL(\'taskcomment_content-{$team_tasks_id[task]}\'),EL(\'TextCount-{$team_tasks_id[task]}\'),EL(\'TextCountLeft-{$team_tasks_id[task]}\'),{$minimal_taskcomment_length}-2,450,EL(\'needchar-{$team_tasks_id[task]}\'),EL(\'chargood-{$team_tasks_id[task]}\'),EL(\'charleft-{$team_tasks_id[task]}\'));&quot; onmouseout=&quot;textCounter(EL(\'taskcomment_content-{$team_tasks_id[task]}\'),EL(\'TextCount-{$team_tasks_id[task]}\'),EL(\'TextCountLeft-{$team_tasks_id[task]}\'),{$minimal_taskcomment_length}-2,450,EL(\'needchar-{$team_tasks_id[task]}\'),EL(\'chargood-{$team_tasks_id[task]}\'),EL(\'charleft-{$team_tasks_id[task]}\'));&quot;></textarea><br /><input value=&quot;{$minimal_taskcomment_length}&quot; readonly id=&quot;TextCount-{$team_tasks_id[task]}&quot; type=&quot;text&quot; name=&quot;TextCount-{$team_tasks_id[task]}&quot; size=&quot;3&quot; maxlength=&quot;3&quot;  style=&quot;background:#FFEAEA;border:1px solid grey;padding-left:3px&quot;><span id=&quot;needchar-{$team_tasks_id[task]}&quot;>{#Chars_Needed#}</span><span id=&quot;chargood-{$team_tasks_id[task]}&quot; style=&quot;display:none&quot;> {#Minimal_Maximal_Length_Ok#}</span><input readonly id=&quot;TextCountLeft-{$team_tasks_id[task]}&quot; type=&quot;text&quot; size=&quot;3&quot; maxlength=&quot;3&quot;  style=&quot;display:none;background:#ffffc6;border:1px solid grey;padding-left:3px;margin-left:20px&quot;><span id=&quot;charleft-{$team_tasks_id[task]}&quot; style=&quot;display:none&quot;> {#Chars_Left#}</span><br /> <input type=&quot;submit&quot; value=&quot;{#Insert_Comment#}&quot; class=&quot;buttMain&quot; /><input type=&quot;hidden&quot;  name=&quot;add_taskcomment_request&quot; value=&quot;1&quot;/><input type=&quot;hidden&quot; name=&quot;task_id&quot; value=&quot;{$team_tasks_id[task]}&quot; /></form></div>',
      TITLE,'{#Comments_Related#}',TITLEBGCOLOR,
           '#000099',CLOSEBTN,true,STICKY,true,BORDERCOLOR,'#003C95',FONTCOLOR,'#000099',BGCOLOR,'#97CBFF',
             DELAY,0,BGCOLOR,'#F2FDFF',FADEOUT,300,CENTERMOUSE, true,CLICKCLOSE,false)">{#Comment_Write#}</span>  
       
      </td>
                              
    </tr> 
    {/section}
  </table>

   {/if}
  
</fieldset>
                 
<fieldset style=" line-height: 2ex;position:relative" id="team_shoutbox_field">
<legend class="team_legend">{#Shoutbox#}</legend> 
<div style="margin-bottom:3px;visibility:hidden;color:#747474" id="refreshing"> 
<img src="{$my_pligg_base}/templates/{$the_template}/images/load.gif"  style="width:16px;height:16px" /> 
{#Refreshing#}
</div>
<div id="shoutarea">
    {section name=shout loop=$team_shoutbox_ids}
        {if $shout_row[shout] eq 1}
        <p class="first"><span style="color:#747474">{$team_shoutbox_times[shout]} <b><i>{$team_shoutbox_creator_names[shout]}:</i></b></span> 
        {$team_shoutbox_messages[shout]}</p>
        {/if}
         {if $shout_row[shout] eq 2}
        <p class="second"><span style="color:#747474">{$team_shoutbox_times[shout]} <b><i>{$team_shoutbox_creator_names[shout]}:</i></b></span> 
        {$team_shoutbox_messages[shout]}</p>
        {/if}            
    {/section}
    
</div>
<form> <br />
<div style="float:left"><span style="margin-right:5px">{#Shoutbox_Creator_Name#}:</span><span style="margin-left:3px;font-weight:bold">{$current_user_name}</span>
<input type="text" style="visibility:hidden;width:1px" />
</div>                                                                                                
<div style="float:left;margin-left:15px"><span style="margin-right:5px">{#Shoutbox_Message#}:</span>
<span class="tooltipblue" title="<div class='titlecontent'>{#Fast_Send#}</div>">
<input id="shoutbox_message" type="text" name="message" maxlength="200" style="width:300px" onkeyup="Tip('{#Fast_Send#}',FADEOUT,500,DURATION,1000)"/></span>
<input style="margin-left:10px" type="button" class="buttMain" value="{#Send_Message#}" id="sendshoutbutt" 
onclick="send_message({$current_user_id},{$team_id})" />
<input type="hidden" id="last_shout" value="{$last_shout}">
<input type="hidden" id="messages_count" value="{$team_shoutbox_messages_count}">
</div>
<div style="float:left;margin-left:5px;color:red;display:none;margin-bottom:-1px" id="none_sel">{#Nothing_Entered#}
 <script type="text/javascript">do_refresh({$current_user_id},{$team_id},{$shoutbox_refresh_interval})
 </script>
</div>
<div style="float:left;margin-left:5px;color:red;display:none;margin-bottom:-1px" id="saving_message"> 
<img src="{$my_pligg_base}/templates/{$the_template}/images/clock.gif"  style="width:24px;height:24px" />

</div>
</form>

</fieldset>